import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import store from "./store";
import { Provider } from "react-redux";
import { RouterProvider } from "react-router-dom";
import router from "./router";
// 定制主题文件
import "./theme.css";
import "./index.css";
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  //React.StrictMode在开发模式下故意调用组件的 useEffect 两次
  <React.StrictMode>
    {/* 传入store */}
    <Provider store={store}>
      <RouterProvider router={router}>
        <App />
      </RouterProvider>
    </Provider>
  </React.StrictMode>
);
